﻿#define _CRT_SECURE_NO_WARNINGS
#define MAX 1000
#define NAME 20
#define SEX  6
#define TELE 12
#define ADDRESS 30
#define SIZE 3
#define MALLOC 2
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct people
{
	char name[NAME];
	char sex[SEX];
	int  age;
	char tele[TELE];
	char address[ADDRESS];
};
struct contact
{
	struct people* date;
	int num;
	int malloc;
};
void initcontact(struct contact* cons);
void addcontact(struct contact* cons);
void delecontact(struct contact* cons);
void selectcontact(struct contact* cons);
void modifycontact(struct contact* cons);
void showcontact(struct contact* cons);
void sortcontact(struct contact* cons);
void freerealloc(struct contact* cons);